package com.zl.pro.pojo;

import java.util.Date;
//根据用户id进行多条件分页查询
public class OrderPaging {
	private Long userId;//userid
	private String orderstatus;//订单状态
	private Date maxDate;//订单最大时间
	private Date minDate;//订单最小时间
	private String adminOperating;//基金审核状态
	private String orderId;//订单号
	
	private Integer start;//从第几页开始
	private Integer end;//从第几页结束
	
	private Integer page;//当前页码
	private Integer rows;//符合条件信息总条数
	private Integer pageRow=10;//每页显示4条
	private Integer pagecount;//总共可分为多少页
	
	public Long getUserId() {
		return userId;
	}
	public void setUserId(Long userId) {
		this.userId = userId;
	}
	public String getOrderstatus() {
		return orderstatus;
	}
	public void setOrderstatus(String orderstatus) {
		this.orderstatus = orderstatus;
	}
	public Date getMaxDate() {
		return maxDate;
	}
	public void setMaxDate(Date maxDate) {
		this.maxDate = maxDate;
	}
	public Date getMinDate() {
		return minDate;
	}
	public void setMinDate(Date minDate) {
		this.minDate = minDate;
	}
	
	
	public String getOrderId() {
		return orderId;
	}
	public void setOrderId(String orderId) {
		this.orderId = orderId;
	}
	public String getAdminOperating() {
		return adminOperating;
	}
	public void setAdminOperating(String adminOperating) {
		this.adminOperating = adminOperating;
	}
	public Integer getStart() {
		start= (getPage()-1 )* getPageRow();//
		return start;
	}
	public void setStart(Integer start) {
		this.start = start;
	}
	public Integer getEnd() {
		end= getPage()* getPageRow();//
		return end;
	}
	public void setEnd(Integer end) {
		this.end = end;
	}
	public Integer getPage() {
		return page;
	}
	public void setPage(Integer page) {
		this.page = page;
	}
	public Integer getRows() {
		return rows;
	}
	public void setRows(Integer rows) {
		this.rows = rows;
	}
	public Integer getPageRow() {
		return pageRow;
	}
	public void setPageRow(Integer pageRow) {
		this.pageRow = pageRow;
	}
	public Integer getPagecount() {
		if(getRows() % getPageRow() == 0) {
			pagecount=getRows() / getPageRow();
		}else {
			pagecount=getRows() / getPageRow()+1;
		}
		return pagecount;
	}
	public void setPagecount(Integer pagecount) {
		this.pagecount = pagecount;
	}
}
